package ex202;

public class Rectangle {
    double width;
    double height;

    Rectangle() {
        width = 1.0;
        height = 1.0;
    }

    Rectangle(double w, double h) {
        width = w;
        height = h;
    }

    double getPerimeter() {
        return 2 * (width + height);
    }

    double getArea() {
        return width * height;
    }
}
